home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / wcmd110.zip / WCOMMAND.MNU < prev   
Text File  |  1992-03-14  |  4KB  |  110 lines

  1. ; WCOMMAND.MNU - a sample menu template for Windows Command!
  2. ; Note: Any line with a semicolon (;) in the first character position is considered
  3. ; to be a comment!
  4.  
  5. ; The first line below shows the format for creating a popup menu.  The opening 
  6. ; bracket ({) indicates to Windows Command that there will be menu items inside a popup 
  7. ; menu.
  8. ; Note the ampersand (&) in the word "Execute" below.  That character is a special
  9. ; character in Windows which will make the character following the ampersand a "hot key"
  10. ; to the menu item.  This means that if you press ALT (to access the Windows Command menu)
  11. ; and then 'X', the "Execute" submenu will be selected, just as if you selected it with
  12. ; a mouse.
  13.  
  14. E&xecute{
  15.  
  16. ; You can also nest popup menus inside other popups.  "Applications" below demonstrates
  17. ; this.  Note that it is in the same format as "Execute" above.  All leading tabs and 
  18. ; space characters before the menu titles are ignored.
  19.  
  20.     &Applications{
  21.  
  22. ; Now we start with menu items.  The format for these are menu title, followed by an
  23. ; equal sign (=), and then the command line to be executed.  The example immediately
  24. ; below is "Calculator" (note the use of the ampersand once again).  This line creates
  25. ; a menu item named "Calculator" with the letter "a" as a hot key, that when selected
  26. ; will execute the command "cdx calc.exe" at the command line.  This format is standard
  27. ; for menu items, and you can see it repeated in each menu item below.
  28.  
  29.         C&alculator=cdx calc.exe
  30.         &Calendar=cdx calendar.exe
  31.         Car&dfile=cdx cardfile.exe
  32.         C&lock=cdx clock.exe
  33.  
  34. ; Note the next line, "Notepad".  The command line is preceded with a semicolon (;).  What
  35. ; this allows you to do is put the command on the command line, but not execute it.  You
  36. ; can then add a filename, or otherwise modify the command before executing it.  Be careful
  37. ; to allow no spaces between the equal sign (=) and the semicolon (;)!
  38.  
  39.         &Notepad=;notepad.exe 
  40.  
  41. ; @COL@= is a special Windows Command menu title which will make all the following menu 
  42. ; items begin on a new column.  The columns will not be separated by a vertical line, as
  43. ; the @COLBAR@= special menu title does (@COLBAR@= is illustrated below).
  44.  
  45.         @COL@=
  46.         &Paintbrush=;pbrush.exe
  47.         &Recorder=cdx recorder.exe
  48.         &Terminal=cdx terminal.exe
  49.         &Write=;write.exe
  50.     }
  51.     &Games{
  52.         &Reversi=cdx reversi.exe
  53.         &Solitare=cdx sol.exe
  54.     }
  55.     S&hells{
  56.         &File Manager=cdx winfile.exe
  57.         &MSDOS Executive=cdx msdos.exe
  58.         &Program Manager=cdx progman.exe
  59.     }
  60.     &System{
  61.         C&lipboard=cdx clipbrd.exe
  62.         &Control Panel=cdx control.exe
  63.         &PIF Editor=pifedit.exe
  64.         P&rint Manager=cdx printman.exe
  65.         &Task Manager=cdx taskman.exe
  66. ; The @LINE@= special menu title will put a horizontal separating line in the menu.
  67.  
  68.         @LINE@=
  69.         Windows &Help=cdx winhelp.exe
  70.         Windows &Setup=cdx setup.exe
  71.     }
  72. }
  73.  
  74. ; Start a new top-level menu!
  75.  
  76. &Sample Commands{
  77.  
  78. ; Note that any command that can be typed at the command line can be executed using
  79. ; the menu.  Below, the multiple commands per line feature is demonstrated, by 
  80. ; executing a "date" command, followed by a "time" command.
  81.  
  82.         &Date and Time=date^time
  83.         Dos &Path=path
  84.         Dos &Environment=set
  85.  
  86. ; Here is the @COLBAR@= special menu title, as mentioned above.  It will begin a new
  87. ; menu column, but will separate the columns with a vertical bar.
  88.  
  89.         @COLBAR@=
  90.         &Version and Free Memory=ver^mem
  91.         Volume &Serial and Label=ser^vol
  92.         &Wide Dir=dir /w
  93.  
  94. ; This is a "do-nothing" system of submenus, just meant to bring your attention to the 
  95. ; flexibility of the Windows Command definable menu structure.
  96.  
  97.         SubMenu{
  98.             SubMenu2{
  99.                 SubMenu3{
  100.                     SubMenu4{
  101.                         SubMenu5{
  102.                             Congratulations!=rem it was pointless, but wasn't it fun?
  103.                         }
  104.                     }
  105.                 }
  106.             }
  107.         }
  108.     }
  109. }
  110.